import {request} from "@/api";
import type {SysTask} from "@/api/task/types.ts";
import type {Page} from "@/api/types.ts"

const apiPrefix = '/varian-system/task'
export const taskApi = {
    page: (params: any) => request.get<Page<SysTask>>(`${apiPrefix}/page`, {params}),
    detail: (id: string) => request.get<SysTask>(`${apiPrefix}/${id}`),
}
